<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>startWithTest</title>
	<script src="../../dist/Free.js"></script>
</head>

<body>
	<script>
		let str1 = "hello,45world123";
		let str2 = "demo,test";
		let str3 = "王-炸";
		console.log($.stringUtils.startWith(str1, 'hello')); // true
		console.log($.stringUtils.startWith(str2, 'dem')); // true
		console.log($.stringUtils.startWith(str2, '')); // false
		console.log($.stringUtils.startWith('test',str2)); // false
		// console.log($.stringUtils.startWith(1, 'test'));
		console.log($.stringUtils.startWith(str2, 2));// false
	</script>
</body>

</html>